#{extends 'main.html' /}
#{set title:'Search' /}
<style>
.ideas {background-color: aqua;}
.organizations {background-color: green;}
.enteties {background-color: yellow;}
.topics {background-color: orange;}
.plans {background-color: teal;}
.requests {background-color: silver;}
</style>

<h2> Ideas: </h2><br />
#{displayIdeas ideas:result.ideas, user:user, mode:'search' /} <br />

<h2> Organization: </h2><br />
#{displayOrgs organizations:result.organizations, user:user /} <br />

<h2> Entities: </h2><br />
#{displayEnteties entities:result.entities, user:user /} <br />

<h2> Topics: </h2><br />
#{displayTopics topics:result.topics, user:user /}

<h2> Plans: </h2><br />
#{displayPlans plans:result.plans, mode:'search' /}

<h2> Requests: </h2><br />
#{displayRequests requests:result.requests, mode:'search' /}

<p><a href="@{Ideas.sort(ideasID, true, true)}">Sort results ascendingly according to views</a>
<p><a href="@{Ideas.sort(ideasID, true, false)}">Sort results descendingly according to views</a>
<p><a href="@{Ideas.sort(ideasID, false, true)}">Sort results ascendingly according to rating</a>
<p><a href="@{Ideas.sort(ideasID, false, false)}">Sort results descendingly according to rating</a>


<p><a href="@{Application.export(ideasID)}">Export results</a>
